package org.linlinjava.litemall.admin.vo.order;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.linlinjava.litemall.core.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

@Data
@Builder
@ApiModel(description = "订单列表分页")
public class OrderDayDetailReqVO extends PageParam {
    @ApiModelProperty(value = "用户账号", example = "123")
    private String userName;

    @ApiModelProperty(value = "订单编号", example = "202107180001")
    private String orderSn;

    @ApiModelProperty(value = "门店", example = "1")
    private Integer shopId;

    @ApiModelProperty(value = "支付类型数组")
    private List<Byte> payTypes;

    @ApiModelProperty(value = "订单来源")
    private List<Byte> orderSources;

    @ApiModelProperty(value = "订单类型（1自提，2配送，3堂食，4外带）", example = "1")
    private List<Byte> orderTypes;

    @ApiModelProperty(value = "时间", example = "1")
    private String searchDate;

    /*@ApiModelProperty(value = "开始日期", example = "2021-07-01")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private List<LocalDateTime> dateTimes;*/
}

